/* 底部购物车样式 */
.cart-footer {
  width: 85%;
  margin: auto;
  position: fixed;
  bottom: 136rpx;
  border-radius: 50px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  padding: 2px 20px;
  display: flex;
  align-items: center;
  z-index: 100;
}

/* 优惠券区域 - 上下布局 */
.coupon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0px;
  margin-right: 5px;
  position: relative;
}

.coupon-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.coupon-available {
  display: flex;
  align-items: center;
  color: #ff6b00;
  font-size: 10px;
  font-weight: 500;
}

.coupon-icon {
  margin-right: 4px;
  font-size: 16px;
}

/* 分割线 */
.divider {
  width: 1px;
  height: 40px;
  background: #f0f0f0;
  margin-right: 15px;
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-total {
  font-size: 18px;
  font-weight: bold;
  color: #ff4444;
}

.cart-count {
  font-size: 14px;
  color: #666;
}

.checkout-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 1px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
}

.checkout-btn.disabled {
  background: #cccccc;
}

.cart-icon {
  position: relative;
  margin-right: 10px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  width: 17px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 优惠券弹窗 */
.coupon-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: bottom 0.3s ease;
  z-index: 99900;
}

.coupon-popup.show {
  bottom: 0;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.popup-title {
  font-size: 18px;
  font-weight: bold;
}

.close-btn {
  font-size: 24px;
  color: #999;
}

.coupon-item {
  margin-bottom: 15px;
  background: linear-gradient(to right, #ffecd2, #fcb69f);
  border-radius: 8px;
  color: #ff6b00;
}

// .coupon-value {
//   font-size: 24px;
//   font-weight: bold;
//   margin-right: 15px;
// }

// .coupon-detail {
//   flex: 1;
// }

// .coupon-condition {
//   font-size: 14px;
//   margin-top: 5px;
// }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}